package com.ajun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 订单实体类
 *
 * @author LiJun
 * @date 2021-07-15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("order_data")
public class Order implements Serializable {

    private static final long serialVersionUID = 75261477257576539L;

    @TableId(type = IdType.INPUT)
    private Integer orderId;
    private Integer userId;
    private String orderSerial;
    private String orderContent;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
